package com.szeastroc.service.system;

import com.github.pagehelper.PageInfo;
import com.szeastroc.base.service.BaseService;
import com.szeastroc.bean.system.SystemUser;

public interface SystemUserService extends BaseService<SystemUser>{

    /**
     * 根据用户名获取用户并且获取用户的角色与权限
     * @param userName
     * @return
     */
    public SystemUser selectByUserName(String userName);


    public PageInfo<SystemUser> selectPage(int pageNum, int pageSize);


    public void updateUserRole(Integer userId,Integer roleId);
}
